package com.atguigu.pojo;

import java.util.Objects;

//总任务相当于"医药网"
public class DeployGoal {
    String id;
    String name;
    String status;

    public DeployGoal() {
    }

    public DeployGoal(String id, String name, String status) {
        this.id = id;
        this.name = name;
        this.status = status;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof DeployGoal)) return false;
        DeployGoal that = (DeployGoal) o;
        return getId().equals(that.getId()) && getName().equals(that.getName()) && getStatus().equals(that.getStatus());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getId(), getName(), getStatus());
    }

    @Override
    public String toString() {
        return "DeployGoal{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
